package cn.heima.com;

import java.util.Calendar;
import java.util.Scanner;

public class DateDemo3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入年份：");
        int year = scanner.nextInt();

        Calendar instance = Calendar.getInstance();
        instance.set(year,11,31);
        instance.get(Calendar.DAY_OF_MONTH);
    }
}
